<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.Pos?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.StackPane?>
<?import javafx.scene.layout.VBox?>

<VBox xmlns:fx="http://javafx.com/fxml" fx:controller="com.sikhyeon.datastructure.controller.StackController" spacing="10" alignment="CENTER">
    <StackPane fx:id="messagePane" alignment="TOP_CENTER">
        <Label fx:id="messageLabel" text="" style="-fx-background-color: white; -fx-padding: 5px; -fx-border-color: black;"/>
    </StackPane>
    <HBox alignment="CENTER" spacing="10">
        <VBox alignment="CENTER" spacing="10">
            <Button text="Push" onAction="#pushValue"/>
            <Button text="Pop" onAction="#popValue"/>
            <Button text="Initialize" onAction="#initialize"/>
            <Button text="Back" onAction="#goBack"/>
        </VBox>
    </HBox>
    <VBox fx:id="stackContainer" spacing="5" alignment="BOTTOM_CENTER" prefHeight="400" prefWidth="200">
        <!-- Stack elements will be displayed here -->
    </VBox>
</VBox>
